using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._TodBASE
{
    /// <summary>
    /// <para>Table To dBASE</para>
    /// <para>Converts one or more tables to dBASE tables.</para>
    /// <para>将一个或多个表转换为 dBASE 表。</para>
    /// </summary>    
    [DisplayName("Table To dBASE")]
    public class TableToDBASE : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public TableToDBASE()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_Table">
        /// <para>Input Tables</para>
        /// <para>The list of tables to be converted to dBASE.</para>
        /// <para>要转换为 dBASE 的表的列表。</para>
        /// </param>
        /// <param name="_Output_Folder">
        /// <para>Output Folder</para>
        /// <para>The destination folder where the output dBASE tables will be placed.</para>
        /// <para>将放置输出 dBASE 表的目标文件夹。</para>
        /// </param>
        public TableToDBASE(List<object> _Input_Table, object _Output_Folder)
        {
            this._Input_Table = _Input_Table;
            this._Output_Folder = _Output_Folder;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Table To dBASE";

        public override string CallName => "conversion.TableToDBASE";

        public override List<string> AcceptEnvironments => ["configKeyword", "extent", "qualifiedFieldNames", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_Input_Table, _Output_Folder, _Derived_Folder];

        /// <summary>
        /// <para>Input Tables</para>
        /// <para>The list of tables to be converted to dBASE.</para>
        /// <para>要转换为 dBASE 的表的列表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Tables")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _Input_Table { get; set; }


        /// <summary>
        /// <para>Output Folder</para>
        /// <para>The destination folder where the output dBASE tables will be placed.</para>
        /// <para>将放置输出 dBASE 表的目标文件夹。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Folder")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Output_Folder { get; set; }


        /// <summary>
        /// <para>Updated Output Folder</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Output Folder")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _Derived_Folder { get; set; }


        public TableToDBASE SetEnv(object configKeyword = null, object extent = null, bool? qualifiedFieldNames = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(configKeyword: configKeyword, extent: extent, qualifiedFieldNames: qualifiedFieldNames, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}